﻿#ifndef UTILITY_PATHMANAGER_H
#define UTILITY_PATHMANAGER_H

#include <QObject>


namespace Utility {

class PathManager : public QObject
{
    Q_OBJECT
private:
    explicit PathManager(QObject *parent = 0);
    virtual ~PathManager();

private:
    static PathManager *m_instance;

#ifdef Q_WS_X11
    QString m_desktopFilePath;
#endif
    QString m_profilePath;
    QString m_pluginsLibPath;
    QString m_dataPath;

private:
    void initBasicPaths();

public:
    static PathManager *instance();

public:
    void init();
    static QString homePath();
};

} // namespace Utility

#endif // UTILITY_PATHMANAGER_H
